package com.czxy.demo02;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by hp on 2020/1/30.
 */
public class Test06 {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        for (int i = 1; i <=100 ; i++) {
            if (String.valueOf(i).contains("9")){
                continue;
            }
            list.add(i);
        }
        for (int i = 0; i <list.size(); i++) {
            for (int j = 0; j <5; j++) {
                if (i==list.size()-1){
                    System.out.println(list.get(i));
                    break;
                }else {
                    System.out.print(list.get(i)+" ");
                    i++;
                }
            }
            System.out.println();
        }
    }
}
